package code.rocky.chapter03;

public class Suggest31 {

    interface S {
        public void doSomething();
    }

    interface B {
        public static final S s = new S() {
            @Override
            public void doSomething() {
                System.out.println("我在接口中实现了");
            }
        };
    }

    public static void main(String[] args) {
        B.s.doSomething();
    }
}
